import request from '@/utils/http'

// 组合name查询
export async function queryPortfolioList(params?: any): Promise<any> {
  return request(`/api/fund/portfolio/query/fof_portfolio`, {
    method: 'post',
    data: params,
  })
}

// （单基）事件配置列表
export async function queryPortfolioEventConfigList(params?: any): Promise<any> {
  return request(`/api/fund/fof/event/queryPortfolioEventConfigList`, {
    method: 'get',
    params
  })
}

// （组合）事件预值保存
export async function savePortfolioPreVal(params?: any): Promise<any> {
  return request(`/api/fund/fof/event/savePortfolioPreVal`, {
    method: 'post',
    data: params
  })
}

// （组合）事件配置查询
export async function queryPortfolioEventConfig(params?: any): Promise<any> {
  return request(`/api/fund/fof/event/queryPortfolioEventConfig`, {
    method: 'get',
    params
  })
}

// （组合）事件配置查询
export function querySelectCom(params?: any): Promise<any> {
  return request(`/api/fund/benchmark/portfolio_config/query`, {
    method: 'post',
    data:params
  })
}